package com.jmlee.pojo;

import java.util.Date;

/**
 * @author： 郑锦涛
 * @data： 2021/3/10 10:58
 * @version：1.0
 * @描述： 订单状态表   对应  order_status表
 */
public class OrderStatus {

    /**
     * id   id
     * orderId  订单id
     * orderStatus  订单状态10、20、30、40、50
     * createdTime  订单创建时间  10
     * payTime      支付成功时间  20
     * deliverTime  发货时间    30
     * successTime  交易成功时间  40
     * closeTime    交易关闭时间  50
     * comment_time 留言时间
     */
    private Long id;
    private Long orderId;
    private Integer orderStatus;
    private Date createdTime;
    private Date payTime;
    private Date deliverTime;
    private Date successTime;
    private Date closeTime;
    private Date commentTime;

    public OrderStatus() {
    }

    public OrderStatus(Long id, Long orderId, Integer orderStatus, Date createdTime, Date payTime, Date deliverTime, Date successTime, Date closeTime, Date commentTime) {
        this.id = id;
        this.orderId = orderId;
        this.orderStatus = orderStatus;
        this.createdTime = createdTime;
        this.payTime = payTime;
        this.deliverTime = deliverTime;
        this.successTime = successTime;
        this.closeTime = closeTime;
        this.commentTime = commentTime;
    }

    @Override
    public String toString() {
        return "OrderStatus{" +
                "id=" + id +
                ", orderId=" + orderId +
                ", orderStatus=" + orderStatus +
                ", createdTime=" + createdTime +
                ", payTime=" + payTime +
                ", deliverTime=" + deliverTime +
                ", successTime=" + successTime +
                ", closeTime=" + closeTime +
                ", commentTime=" + commentTime +
                '}';
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public Date getDeliverTime() {
        return deliverTime;
    }

    public void setDeliverTime(Date deliverTime) {
        this.deliverTime = deliverTime;
    }

    public Date getSuccessTime() {
        return successTime;
    }

    public void setSuccessTime(Date successTime) {
        this.successTime = successTime;
    }

    public Date getCloseTime() {
        return closeTime;
    }

    public void setCloseTime(Date closeTime) {
        this.closeTime = closeTime;
    }

    public Date getCommentTime() {
        return commentTime;
    }

    public void setCommentTime(Date commentTime) {
        this.commentTime = commentTime;
    }
}
